import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class boolTest {
    public static void main(String[] args) {
//         int a = true;
//        System.out.println(a);
//        java: 不兼容的类型: boolean无法转换为int
//           布尔转整数
            boolean b = true;
            int i = b? 1:0;
            System.out.println(i);

//            整数转布尔
            int myInt= 0;
            boolean myBoolean = myInt!= 0;
            System.out.println(myBoolean); //输出为false
    }

}
